package com.web.pojo.dto;

import java.io.Serializable;

/**
 * @Author: wws
 * describe:
*/
public class SetSwitchDimmingLevelDTO implements Serializable {
    private Integer id;//设备id
    private byte deviceChannelParameter1 = (byte) 0xff;//0x00-0x13：20级，0x00关闭，0x13全功率；
    private byte deviceChannelParameter2 = (byte) 0xff;//0x00-0x13：20级，0x00关闭，0x13全功率；

    public SetSwitchDimmingLevelDTO() {
    }

    public SetSwitchDimmingLevelDTO(Integer id,byte[] deviceResult) {
        this.id = id;
        this.deviceChannelParameter1 =deviceResult[5];
        this.deviceChannelParameter2 = deviceResult[6];
    }

    public SetSwitchDimmingLevelDTO(Integer id, byte deviceChannelParameter1, byte deviceChannelParameter2) {
        this.id = id;
        this.deviceChannelParameter1 = deviceChannelParameter1;
        this.deviceChannelParameter2 = deviceChannelParameter2;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public byte getDeviceChannelParameter1() {
        return deviceChannelParameter1;
    }

    public void setDeviceChannelParameter1(byte deviceChannelParameter1) {
        this.deviceChannelParameter1 = deviceChannelParameter1;
    }

    public byte getDeviceChannelParameter2() {
        return deviceChannelParameter2;
    }

    public void setDeviceChannelParameter2(byte deviceChannelParameter2) {
        this.deviceChannelParameter2 = deviceChannelParameter2;
    }

    @Override
    public String toString() {
        return "SetSwitchDimmingLevelDTO{" +
                "id=" + id +
                ", deviceChannelParameter1=" + deviceChannelParameter1 +
                ", deviceChannelParameter2=" + deviceChannelParameter2 +
                '}';
    }
}
